<template>
  <div class="app">
    <BaseCount @changeNum="updateNum"></BaseCount>
  </div>
</template>

<script>
import BaseCount from './components/BaseCount.vue'
export default {
  components:{
    BaseCount
  },
  data(){
    return {
      count:100
    }
  },
  methods:{
    updateNum(val){
      alert(val)
      this.count = val;
    }
  }
}
</script>

<style>

</style>